﻿using Abp.AutoMapper;
using Abp.Domain.Entities.Auditing;
using Mt.Site.Core.Storage;
using System;
using System.ComponentModel.DataAnnotations;

namespace Mt.Site.Application.FileUpload.Dto
{
    [AutoMapFrom(typeof(FileObject))]
    public class FileInfoDto : CreationAuditedEntity<Guid>
    {
        [Required]
        [StringLength(FileObject.MaxFileUrlLength)]
        public string FileUrl { get; set; }

        [StringLength(FileObject.MaxFileUrlLength)]
        public string PreViewImage { get; set; }


        [StringLength(FileObject.MaxSizeLength)]
        public string Size { get; set; }

        [StringLength(FileObject.MaxFileNameLength)]
        public string FileName { get; set; }

        [StringLength(FileObject.MaxFileExNameLength)]
        public string exName { get; set; }

        [StringLength(FileObject.MaxTitleLength)]
        public string Title { get; set; }


        [StringLength(FileObject.MaxAliasLength)]
        public string Alias { get; set; }

        public int Order { get; set; }

        public bool IsActive { get; set; }

        public bool Status { get; set; }

        public bool AutoSynchronous { get; set; }
    }
}
